import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home/Home.vue'),
    children: [
      {
        path: '/mine',
        name: 'Mine',
        component: () => import('../views/home/manage/generalUser/Mine.vue'),
      },
      {
        path: '/mine/index',
        name: 'MineIndex',
        component: () => import('../views/home/manage/generalUser/personal/MineIndex.vue'),
      },
      {
        path: '/mine/about',
        name: 'MineAbout',
        component: () => import('../views/home/manage/generalUser/personal/MineAbout.vue'),
      },
      {
        path: '/mine/consult',
        name: 'MineConsult',
        component: () => import('../views/home/manage/generalUser/personal/MineConsult.vue'),
      },
      {
        path: '/mine/lectures',
        name: 'MineLectures',
        component: () => import('../views/home/manage/generalUser/personal/MineLectures.vue'),
      },
      {
        path: '/user',
        name: 'User',
        component: () => import('../views/home/manage/User.vue'),
      }, {
        path: '/specialist',
        name: 'Specialist',
        component: () => import('../views/home/manage/Specialist.vue'),
      }, {
        path: '/doctor',
        name: 'Doctor',
        component: () => import('../views/home/manage/doctor/Doctor.vue'),
      }, {
        path: '/automaticrecognition',
        name: 'AutomaticRecognition',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/AutomaticRecognition.vue'),
      }, {
        path: '/classiccases',
        name: 'ClassicCases',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/ClassicCases.vue'),
      }, {
        path: '/competition',
        name: 'Competition',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/Competition.vue'),
      }, {
        path: '/digitalslicelibrary',
        name: 'DigitalSliceLibrary',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/DigitalSliceLibrary.vue'),
      }, {
        path: '/evaluation',
        name: 'Evaluation',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/Evaluation.vue'),
      }, {
        path: '/filmreadingmeeting',
        name: 'FilmReadingMeeting',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/FilmReadingMeeting.vue'),
      }, {
        path: '/personalcenter',
        name: 'PersonalCenter',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/PersonalCenter.vue'),
      }, {
        path: '/pathologylecture',
        name: 'PathologyLecture',
        component: () => import('../views/home/manage/doctor/doctoraffiliated/PathologyLecture.vue'),
      }, {
        path: '/groupconsultation',
        name: 'GroupConsultation',
        component: () => import('../views/home/manage/expert/GroupConsultation.vue'),
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
